Component({
  properties: {
    id: {
      type: String,
      value: ''
    },
    albumId: {
      type: String,
      value: ''
    },
    episodeId: {
      type: String,
      value: ''
    },
    objectFit: {
      type: String,
      value: 'cover'
    },
    poster: {
      type: String,
      value: ''
    },
    autoplay: {
      type: Boolean,
      value: false
    },
    controls: {
      type: Boolean,
      value: false
    },
    vslideGestureInFullscreen: {
      type: Boolean,
      value: false
    },
    cloudType: {
      type: Number,
      value: 1
    },
    version: {
      type: String,
      value: '1'
    },
    durationLimit: {
      type: Number,
      value: 0
    }
  },
  methods: {
    onPlay() {
      this.triggerEvent('play')
    },
    onPause() {
      this.triggerEvent('pause')
    },
    onEnded(e) {
      this.triggerEvent('ended', e.detail)
    },
    onTimeUpdate(e) {
      this.triggerEvent('timeupdate', e.detail)
    },
    onWaiting(e) {
      this.triggerEvent('waiting', e.detail)
    },
    onError(e) {
      this.triggerEvent('error', e.detail)
    },
    onGetSource(e) {
      this.triggerEvent('getsource', e.detail)
    }
  }
})
